package gamefw.tests;

import gamefw.framework.GameEngine;
import gamefw.tests.implementations.game.SimpleGameFactory;
import gamefw.tests.implementations.ui.SimpleUIFactory;
import junit.framework.TestCase;

public class TestGameEngine extends TestCase {

	/**
	 * GE01
	 * Test to check if it is possible to start a new game using the GameEngine
	 * as a point of entry.
	 */
	public void testStartGame() {
		GameEngine ge = GameEngine.getInstance();
		boolean ok = true;
		try {
			ge.startGame(new SimpleGameFactory(), new SimpleUIFactory(), "txt");
		} catch (Exception e) {
			ok = false;
		}
		
		assertTrue(ok);
	}
}
